
#import "NSTimer+SheerFounction.h"

@implementation NSTimer (SheerFounction)

/******       Carousel figure       ******/

-(void)pauseTimer
{
    // bulid yes/no
    if (![self isValid]) {
        
        return;
    }
    [self setFireDate:[NSDate distantFuture]];
}

-(void)resumeTimer
{
    if (![self isValid]) {
        
        return;
    }
    [self setFireDate:[NSDate date]];
}

-(void)resumeTimerAfterTimerInterval:(NSTimeInterval)interval
{
    if (![self isValid]) {
        
        return;
    }
    [self setFireDate:[NSDate dateWithTimeIntervalSinceNow:interval]];
}

@end
